package com.example.mybatispuls.company.controller;


import com.example.mybatispuls.company.service.CompanyService;
import com.example.mybatispuls.config.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 开发者
 * @since 2022-05-12
 */
@RestController
@RequestMapping("/company/company")
public class CompanyController {

    @Autowired
    private CompanyService companyService;

    @GetMapping("/company")
    public CommonResult ser() {
        return CommonResult.success(companyService.queryCompany());
    }
}

